#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    : LoginTest.py
@Desc    : 
@Version : 1.0
@Author  : echohelper 
@Email   : echohelper@qq.com
@WebSite : www.github.com/echohelper
@Time    : 2021/09/23 20:02:38
'''
# Start typing your code from here

import unittest
import requests
import json


class LoginTest:

    def testAccountLoginPost(self, url:str, data:str) -> bool:
        rData = requests.post(url, data)
        obj = json.loads(rData.text)
        bRet = (obj['status'] == 200)  # 判断返回结果码是否为2000
        return bRet
